<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" />

<!--  load css files -->
<link rel="stylesheet" type="text/css" href="${ctx}/res/css/base.css"></link>
<link rel="stylesheet" type="text/css"
	href="${ctx}/res/css/jquery-ui.min.css" />

<link rel="stylesheet" type="text/css"
	href="${ctx}/res/css/jPaginate.css"></link>
<!--  load js files  -->
<script src="${ctx}/res/js/common/jquery-1.7.2.min.js">
	
</script>
<script src="${ctx}/res/js/common/jquery-ui.min.js"></script>
<script src="${ctx}/res/js/common/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="${ctx}/res/js/jquery.pagination.js"></script>
<script type="text/javascript" src="${ctx}/res/js/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx}/res/js/common/common.js"></script>

<!-- 全局函数-->
<script type="text/javascript">
	var BASE_PATH = '${ctx}';	
	$(document).ready(function() {
		setBodyHeight();
		$(window).resize(function() {
			setBodyHeight();
		});

		$("#nav_logout").click(function() {
			openConfirm('确定退出吗？', null, function() {
				SessionStorage.clear();
				window.location.href = "${ctx}/logout.do";
			},null);				
			 
		});	
	});

	/**
	 * 动态设置 Body Div的高度
	 */
	function setBodyHeight() {		
		var height = $(window).height();
		if(window.location.href.indexOf('_sitemesh_popup')==-1){
			height = height - 100;	
		}		
		$("#mainBody").height(height);
	}
</script>